<?php defined('SYSPATH') OR die('No direct access allowed.');

class Contentmodule_Controller extends Viewbase_Controller{
	
	public function __construct(){
		$this->modelname='contentmodule';	
		$this->controllername='contentmodule';
		$this->parent_column='';
		parent::__construct();	
	}
	
	public function __preprocess_post($model){

		if(array_key_exists('has_media', $_POST)){
			$_POST['has_media']=1;
		}else{
			$_POST['has_media']=0;
		}
		return $model;
		
	}
	
}